Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Fix onaudioprocess finalizing #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anton-kl
Copy link

@anton-kl anton-kl commented Apr 14, 2017

There is an edge case, when audio callback is still called after closing audio device, which leads to crash because audio device doesn't exist anymore. In this function there is a proper scriptProcessorNode finalizing code, but only for "if capture is enabled" branch, which is placed above.

So the fix is to use the same method for clearing onaudioprocess as in the code above.

There is an edge case, when audio callback is still called after closing audio device, which leads to crash because audio device doesn't exists anymore. In this function there is a proper scriptProcessorNode finalizing code, but only for "if capture is enabled" branch, which is placed above.

So the fix is to use the same method for clearing onaudioprocess as in the code above.
@anton-kl anton-kl changed the title Fixed onaudioprocess finalizing Fix onaudioprocess finalizing Apr 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant